#include "core.h"
#include <Renderer>
#include <DocumentContainer>

Core::Core()
{
}

Core &Core::instance()
{
    static Core inst;
    return inst;
}

bool Core::init()
{
    m_renderer.reset(new Renderer);
    m_documentContainer = new DocumentContainer;
    return true;
}

boost::shared_ptr<Renderer> Core::renderer() const
{
    return m_renderer;
}

QPointer<DocumentContainer> Core::documentContainer() const
{
    return m_documentContainer;
}
